
<!-- 引入基类模板 -->
<extend name="Public:base" />

<!-- 主体部分 -->
<block name='content'>

<div class="layui-tab layui-tab-brief">
	<if condition="!empty($configList)">
	<ul class="layui-tab-title">
		<volist name="configList" id="val">
			<li <if condition="$val.id eq $config_id">class="layui-this"</if> ><a href="/ConfigData/index?config_id={$val.id}">{$val.name}</a></li>
		</volist>
	</ul>
	</if>
	<div class="layui-tab-content">
		<!-- 功能操作区一 -->
		<form class="layui-form toolbar">
			<div class="layui-form-item">
				<div class="layui-inline">
					<label class="layui-form-label w-auto">配置项名称：</label>
					<div class="layui-input-inline">
						<input type="text" name="name" placeholder="请输入配置项名称" autocomplete="off" class="layui-input">
					</div>
				</div>
				<input name="config_id" id="config_id" type="hidden" value="{$config_id}">
				<div class="layui-inline">
					<div class="layui-input-inline" style="width: auto;">
						{:W('func/query',array(查询))}
						{:W('func/add',array(添加配置项, ['config_id='.$config_id]))}
						{:W('func/dall',array(批量删除))}
					</div>
				</div>
			</div>
		</form>
	
		<!-- TABLE渲染区 -->
		<table class="layui-hide" id="tableList" lay-filter="tableList"></table>
		
		<!-- 操作功能区二 -->
		<script type="text/html" id="toolBar">
			{:W('func/edit',array(编辑))}
			{:W('func/delete',array(删除))}
		</script>
	</div>
</div>

</block>